import request from '@/fetch/fetch'

export function getnavlist(obj){    // 生意经分类
    return request({
        url: '/api/web/article/all-article-type',
        method: 'post',
        data:obj
    })
}

export function getAllarticle(obj){    // 生意经全部
    return request({
        url: '/api/web/article/all-article',
        method: 'post',
        data:obj
    })
}

export function getonearticle(obj){    // 根据类型获取生意经列表
    return request({
        url: '/api/web/article/one-type-article',
        method: 'post',
        data:obj
    })
}

export function getarticledetail(obj){    // 根据文章id获取文章详情
    return request({
        url: '/api/web/article/article-detail',
        method: 'post',
        data:obj
    })
}

export function getarticlmessage(obj){    // 生意经获取文章详情留言最新文章
    return request({
        url: '/api/web/article/detail-article-relation',
        method: 'post',
        data:obj
    })
}

export function searcharticle(obj){    // 生意经查找文章
    return request({
        url: '/api/web/article/search-article',
        method: 'post',
        data:obj
    })
}

export function Addarticlemessage(obj){    // 生意经文章留言
    return request({
        url: '/api/web/article/add-message',
        method: 'post',
        data:obj
    })
}

export function Searchkeyword(obj){    // 生意经文章留言
    return request({
        url: '/api/list/kword-search-list',
        method: 'post',
        data:obj
    })
}